package com.itheima.social.securitys.client;
import com.itheima.social.securitys.pojo.client.UserCompanyPersonal;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author qiankaofei
 * @version 1.0
 * @date 2020/12/8 21:43
 */
@FeignClient("ihrm-employee")
public interface EmployeeFeginClient {

    @RequestMapping(value = "/employees/personalInfoToJson/{id}", method = RequestMethod.GET)
    UserCompanyPersonal findPersonalInfoToJson(@PathVariable(name = "id") String id) throws Exception;


    @RequestMapping(value = "/employees/json", method = RequestMethod.GET)
    String findJson();
}
